<?php
/**
 * Description
 *
 * PHP version 7
 *
 * @category Custom
 * @package  Custom
 * @author   ryu <mo5467@126.com>
 * @date     2020-04-25 10:16:08
 * @lastTime 2020-04-26 01:50:34
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     none
 */

namespace Design\Structural\DataMapper;

class StorageAdapter
{

    private $data;


    public function __construct(array $data)
    {
        $this->data = $data;

    }//end __construct()


    public function get(int $id)
    {
        return ($this->data[$id] ?? null);

    }//end get()


}//end class
